<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 同步 必须点击确认框才能打印300
        console.log(100)
        alert(200)  // 卡在这
        console.log(300)
    </script>
</body>
</html>